;
(function(){
	
	var elem = '.J_mainSearInput',
		currVal,
		defaultVal = 'Search for Products';
	
	var bindSear = function(){
		
		$(elem).focus(function(){
			
			currVal = $(this).val();
			if(currVal === defaultVal){
				$(this).val('');	
			}
		});	
		
		$(elem).blur(function(){
			
			currVal = $(this).val();
			if(currVal === '' || 
				$(currVal).trim === ''){
					
				$(this).val(defaultVal);		
			}
		});
	};
	
	$(document).ready(function(){
		bindSear();	
	});	
})();